package com.tool_stdy.ConcurrencyModel.ProductConsumer;

import java.util.Queue;

import com.tool_stdy.ConcurrencyModel.WorkMastser.Task;

/**
 * Created by yan_li on 2016/11/11.
 */
public class Product {

    private Queue<Task> workQueue;

    public Product(Queue<Task> workQueue) {
        this.workQueue = workQueue;
    }

    public void addTask(Task task) {
        workQueue.add(task);
    }
}
